package com.biovr.backend.repository;

import com.biovr.backend.domain.Resource;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Created by monodev on 2017/6/4.
 */
@Repository
public interface ResourceRepository extends MongoRepository<Resource,String> {
    List<Resource> findByTableNameAndTableId(String tableName, String tableId);
    List<Resource> findByTableNameAndTableIdAndType(String tableName, String tableId,String type);
}
